﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'PRC_TB_ALERTS_TASKS_USERS_IN')
	BEGIN
		DROP  Procedure  dbo.PRC_TB_ALERTS_TASKS_USERS_IN
	END

GO

CREATE Procedure dbo.PRC_TB_ALERTS_TASKS_USERS_IN
	(
		@TATU_ALERT_TASK_ID int,
		@TATU_USER_ID int
	)

AS

insert into TB_ALERTS_TASKS_USERS
(TATU_ALERT_TASK_ID,
TATU_USER_ID)
values
(@TATU_ALERT_TASK_ID,
@TATU_USER_ID)

GO

GRANT EXEC ON dbo.PRC_TB_ALERTS_TASKS_USERS_IN TO PUBLIC

GO

